package org.embedchat.database.dao;

import java.util.List;

import org.embedchat.database.ChatRoomDAOInterface;
import org.embedchat.database.ItemNotFoundException;
import org.embedchat.database.dao.GenericChatRoomDAO;
import org.embedchat.entity.ChatRoom;

public class ChatRoomDAOImpl extends GenericHibernateDAO<ChatRoom, Long, GenericChatRoomDAO> implements ChatRoomDAOInterface, GenericChatRoomDAO {

	@Override
	public List<ChatRoom> findAll() {
		return super.findAll();
	}

	@Override
	public ChatRoom makePersistent(ChatRoom entity) {
		return super.makePersistent(entity);
	}

	public ChatRoom findChatRoom(Long chatRoomId) throws ItemNotFoundException {
		return findById(chatRoomId, true);
	}
}
